package com.example.app.service.impl;

import com.example.app.dao.mongdb.MongoMemberLevelRepository;
import com.example.app.model.MemberLevel;
import com.example.app.service.MemberLevelService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wangtao on 2018/6/6.
 */
@Service
public class MemberLevelServiceImpl implements MemberLevelService {

    private static final Logger logger = Logger.getLogger(MemberLevelServiceImpl.class);

    @Autowired
    private MongoMemberLevelRepository mongoMemberLevelRepository;

    @Override
    public MemberLevel findOne(Long id) {
        return mongoMemberLevelRepository.findOne(id);
    }
}
